package com.yunduo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunduo.entity.Role;
import com.yunduo.mapper.RoleMapper;
import com.yunduo.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 角色服务类
 */
@Service("roleService")
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Resource
    private RoleMapper roleMapper;
    @Override
    public List<Role> getRolesByIds(List<String> ids) {
        List<Role> roles = roleMapper.selectRoleByIds(ids);
        return roles;
    }
}